package com.dzzw.Model;

import java.util.Date;

//论坛主题表
public class Forum {
    private int forum_id;
    private int user_id;
    private String user_name;
    private String forum_title;
    private String forum_content;
    private Date forum_sendtime;

    public Forum(){
        super();
    }

    public Forum(int user_id,String forum_title,String forum_content,Date forum_sendtime,String user_name){
        super();
        this.user_id = user_id;
        this.forum_title = forum_title;
        this.forum_content = forum_content;
        this.forum_sendtime = forum_sendtime;
        this.user_name = user_name;
    }

    public Forum(int forum_id,int user_id,String forum_title,String forum_content,Date forum_sendtime,String user_name){
        super();
        this.forum_id =forum_id;
        this.user_id = user_id;
        this.forum_title = forum_title;
        this.forum_content = forum_content;
        this.forum_sendtime = forum_sendtime;
        this.user_name = user_name;
    }

    public int getForum_id() {
        return forum_id;
    }

    public void setForum_id(int forum_id) {
        this.forum_id = forum_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getForum_title() {
        return forum_title;
    }

    public void setForum_title(String forum_title) {
        this.forum_title = forum_title;
    }

    public String getForum_content() {
        return forum_content;
    }

    public void setForum_content(String forum_content) {
        this.forum_content = forum_content;
    }

    public Date getForum_sendtime() {
        return forum_sendtime;
    }

    public void setForum_sendtime(Date forum_sendtime) {
        this.forum_sendtime = forum_sendtime;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    @Override
    public String toString() {
        return "Forum{" +
                "forum_id=" + forum_id +
                ", user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", forum_title='" + forum_title + '\'' +
                ", forum_content='" + forum_content + '\'' +
                ", forum_sendtime=" + forum_sendtime +
                '}';
    }
}
